import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    title: 'Flutter教程03-1',
    home:ContainerDemo() ,
  ));
}
///Container控件 容器,是一个常用的控件
class ContainerDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Container(//Div
        width: 300.0,
        height: 400.0,
        decoration: BoxDecoration(
          color: const Color(0xfffce5cd),
          border: Border.all(
            color: const Color(0xff6d9eeb),
            width: 8.0
          )
        ),
        child: Text('容器演示'),
      ),
    );
  }
}

